<?php
/**
* @myIPN for sobi 2
* @Copyright (C) 2007 Ethan Chai Voon Chong, http://www.ethansoft.com
* @All Rights Reserved
*/

defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

class mosMyipnConfig extends mosDBTable {
	/** @var int Primary key */
	var $id=null;
	/** @var string */
	var $sandbox=null;

	/**
	* @param database A database connector object
	*/
	function mosMyipnConfig() {
	    global $database;
		$this->mosDBTable( '#__myipn_config', 'id', $database );
	}
}

class mosMyipnlog extends mosDBTable {
        var $id=null;
        var $payer_email=null;
        var $receiver_email=null;
        var $entry_cat=null;
        var $entry_number=null;
        var $entry_name=null;
        var $payment_date=null;
        var $payment_amount=null;
        var $payment_currency=null;
        var $txn_id=null;
        var $payment_status=null;
        var $residence_country=null;

        /**
        * @param database A database connector object
        */
        function mosMyipnlog() {
            global $database;
                $this->mosDBTable( '#__myipn_paypal_log', 'id', $database );
        }
}


class mosMyipnsobi extends mosDBTable {
        var $itemid=null;
        var $title=null;
        var $hits=null;
        var $visits=null;
        var $published=null;
        var $confirm=null;
        var $approved=null;
        var $archived=null;
        var $txn_id=null;
        var $publish_up=null;
        var $publish_down=null;
        var $checked_out=null;
        var $checked_out_time=null;
        var $ordering=null;
        var $owner=null;
        var $icon=null;
        var $image=null;
        var $background=null;
        var $options=null;
        var $params=null;
        var $ip=null;
        var $last_update=null;
        var $updating_user=null;
        var $updating_ip=null;
        var $metakey=null;
        var $metadesc=null;

        /**
        * @param database A database connector object
        */
        function mosMyipnsobi() {
            global $database;
                $this->mosDBTable( '#__sobi2_item', 'id', $database );
        }
}

class mosMyipnSobicat extends mosDBTable {
        var $catid=null;
        var $itemid=null;
        var $ordering=null;

        /**
        * @param database A database connector object
        */
        function mosMyipnSobicat() {
            global $database;
                $this->mosDBTable( '#__sobi2_cat_items_relations', 'id', $database );
        }
}

class mosMyipnSobiconfig extends mosDBTable {
        var $configKey=null;
        var $configValue=null;
        var $sobi2Section=null;
	var $description=null;

        /**
        * @param database A database connector object
        */
        function mosMyipnSobiconfig() {
            global $database;
                $this->mosDBTable( '#__sobi2_config', 'id', $database );
        }
}


?>
